﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace predic.Web.Services
{

    public class ContentDisplayService
    {
        public Grid GridToAdd { get; set; }

        public ContentDisplayService(Grid gridToAdd)
        {
            this.GridToAdd = gridToAdd;
        }

        public void ShowContent(Core.Enums.MainContentEnum contentType)
        {
            GridToAdd.Children.Clear();

            switch (contentType)
            {
                case predic.Web.Core.Enums.MainContentEnum.MaintainPredici:
                    GridToAdd.Children.Add(new Controls.MaintainPrediciControl());
                    break;

                default:
                    break;
            }
        }
    }
}
